<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-for</title>
</head>

<body>
    <div id="app">
        <ul>
            <li v-for="item of arr" :key="item.brand">
                {{ item.brand }}
                <ul>
                    <li v-for="(itm,index) of item.list" :key="index">
                        {{itm}}
                    </li>
                </ul>
            </li>
        </ul>
    </div>
</body>
<script src="lib/vue.js"></script>
<script>
    new Vue({
        el: "#app",
        data: {
            arr: [
                {
                    brand: '宝马',
                    list: [
                        'X5', 'X6'
                    ]
                },
                {
                    brand: '奥迪',
                    list: [
                        'A8', 'A6'
                    ]
                },
                {
                    brand: '奔驰',
                    list: [
                        'S500', 'S686'
                    ]
                }
            ]
        }
    })
</script>

</html>